package actions;

//////////////////////////////////////////////////////////////////
/// Una acción atómica y concreta que puede ser ejecutada por un robot.
////////////////////////////////////////////////////////////////// 
class ExecutableAction extends BasicAction{
	public function new(x: Float, y: Float, ActionType: String){
		super(x, y);
		actionType = ActionType;


		var filename: String;
		switch(actionType){
			case "0":
				filename = "nop.png";
			case "P":
				filename = "placeholder.png";
			case "F":
				filename = "forward.png";
			case "L":
				filename = "rotateleft.png";
			case "R":
				filename = "rotateright.png";
			default:
				filename = "nop.png";
		}
		loadGraphic("assets/img/actions/" + filename);
		height = 16;
	}
}